<?php

declare(strict_types=1);
/**
 * This file is part of Hyperf.
 *
 * @link     https://www.hyperf.io
 * @document https://hyperf.wiki
 * @contact  group@hyperf.io
 * @license  https://github.com/hyperf/hyperf/blob/master/LICENSE
 */
namespace App\Controller;

use Hyperf\HttpMessage\Stream\SwooleStream;

class IndexController extends AbstractController
{
    public function index()
    {
        $str = "<style type=\"text/css\">*{ padding: 0; margin: 0; } div{ padding: 4px 48px;} a{color:#2E5CD5;cursor:".
            "pointer;text-decoration: none} a:hover{text-decoration:underline; } body{ background: #fff; font-family:".
            "\"Century Gothic\",\"Microsoft yahei\"; color: #333;font-size:18px;} h1{ font-size: 100px; font-weight: normal;".
            "margin-bottom: 12px; } p{ line-height: 1.6em; font-size: 42px }</style><div style=\"padding: 24px 48px;\"><p>".
            "Zero-Hyperf <br/><span style=\"font-size:30px\">Hello Zero  QQ:376767089</span><br/><span style=\"font-size:30px\">QQ:376767089</span></p></div>";
        return $this->response->withHeader('content-type','text/html')->raw($str);
    }
}
